<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "crm_mall_product_classify".
 *
 * @property int $id
 * @property string $flmc 分类名称
 * @property int $parent_id 父id
 */
class CrmMallProductClassify extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'crm_mall_product_classify';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['parent_id'], 'integer'],
            [['flmc'], 'string', 'max' => 30],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'flmc' => '分类名称',
            'parent_id' => '父id',
        ];
    }
}
